package edu.its.dreamteam.web.components;

import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.ioc.annotations.Inject;

import edu.its.dreamteam.daf.beans.Team;
import edu.its.dreamteam.daf.dao.ITeamDao;

public class OutputTeam {
	@Parameter
    private String idTeam;
	@Inject
	private ITeamDao teamDao;
	
	public ITeamDao getTeamDao() {
		return teamDao;
	}
	void beginRender(MarkupWriter writer)
    {
		Team team = (Team) getTeamDao().findByPrimaryKey(idTeam);
        writer.write(team.getNameTeam());
    }
}
